% The use of oneside here is a temporary hack; \marginpar entries
% don't show up on odd pages of PDF output without it.  Sigh.

\documentclass[oneside,bnf]{book}
\usepackage{enumerate}
\usepackage{fullpage}
\usepackage{makeidx}
\usepackage{ifpdf}
% \usepackage{graphicx}
\usepackage{pslatex}
\usepackage{fancyvrb}
\usepackage{float}
\usepackage{bnf}
\usepackage[pdftex]{graphicx}

\floatstyle{ruled}
\newfloat{program}{thp}{lop}
\floatname{program}{Program}


%%%%%%%%%%% 
%%% http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]
          {\slshape\rightmark}
\fancyhead[LO,RE]
          {\slshape\leftmark}
\fancyfoot[C]{\thepage}
\renewcommand\headrulewidth{0.5pt}
\renewcommand\footrulewidth{0pt}
\headheight 5pt
\voffset 0pt
\topmargin 0pt
\headsep  25pt
%%%%%%%%%%% 


% leave hyperref until last
\usepackage[colorlinks=true,bookmarks=true,pdftitle={Go Programming
    Language},pdfsubject={System
    Monitoring},pdfkeywords={C,C++,Go},pdfauthor={Editor: T.J. Yang}]{hyperref}


\usepackage{shorttoc}

\include{99defs}

% \title{Go Programming Language} 
% \author{
% \includegraphics[scale=0.5]{./gophercolor.png} 
% \newline  
% Go Documenation by LaTeX
% }
\makeindex

\begin{document}

% \maketitle
\input{./title.tex}

\addcontentsline{toc}{chapter}{Contents}
\pagenumbering{roman}
\shorttableofcontents{Summary table of contents}{1}
\setcounter{tocdepth}{4}
\tableofcontents
\listoffigures
\listoftables

\pagenumbering{arabic}
\include{preface}
\include{install}
\include{gccgo_install}
\include{go_faq}  
\include{go_lang_faq}  
\include{go_tutorial}
\include{effective_go}
\include{go_spec}
\include{go_mem}
\include{go_for_cpp_programmers}
\include{contribute}

\appendix
\include{bookmaking}
\include{license}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{alpha}
\bibliography{99book}

\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}


